//
//  MGMacros.h
//  Express
//
//  Created by lhongl on 2025/9/28.
//  Copyright © 2025 QM. All rights reserved.
//

#ifndef MGMacros_h
#define MGMacros_h

/// 打印
#ifdef DEBUG
#define MGLog( s, ... ) NSLog( @"<%p %@:(%d)> %@", self, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )
#else
#define MGLog( s, ... ) do { } while(0);
#endif

/// 循环引用
#define kweakSelf(type)  __weak typeof(type) weak##type = type;
#define kstrongSelf(type) __strong typeof(type) type = weak##type;

/// 替换警告
#define MGPublicDeprecated(instead) DEPRECATED_MSG_ATTRIBUTE(instead)

#endif /* MGMacros_h */
